<!--
 * @Description:
 * @Version: 0.1
 * @Autor: Civet
 * @Date: 2019-08-02 16:04:58
 * @LastEditors: Civet
 * @LastEditTime: 2019-08-02 16:04:58
 -->
<template>
  <headerTopView
    :userN="userN"
    @outSide="outSide"
  ></headerTopView>
</template>

<script>
  import headerTopView from './headerTopView';
  import {localUitl} from '@/utils/localUitl'
  import {getUserN} from '@/httpUtils/apiHome';

  export default {

    components: {
      headerTopView
      // name
    },
    name: "headerTop",
    props: {
      // msg: String //  [name: typeof]
    },
    filters: {},
    computed: {},
    watch: {},
    data() {
      return {
        userN: {}
      }
    },
    created() {
      this.getUserN();
    },
    mounted() {

    },
    methods: {
      outSide(command) {
        localUitl.removeSessionItem("userData");
        this.$router.push('/');
      },
      getUserN() {
        // let obj = {
        //   access_token: localUitl.getToken()
        // };
        // getUserN(obj).then(res => {
        //   if (res.status == 200) {
        //     this.userN = res.data;
        //   }
        // })
      }
    },
    destroyed() {

    }
  }
</script>

<style scoped lang="less">

</style>
